package minusjudge

class Problem {
    String title
    String rootPath
    Integer memoryLimit
    Integer timeLimit
    Integer stackLimit
    Integer numberOfTest
    Integer tipeChecker
    String tokenSeparators
    String statement
    User uploader
    String Author
    
    
    static hasMany=[solutions:Submission]
    static belongsTo=[contest:Contest]

    static constraints = {
        title(blank:false)
        memoryLimit()
        timeLimit()
        stackLimit()
        numberOfTest()
        tipeChecker()
        tokenSeparators()
        statement(blank:false)
        
    }
}
